<html xmlns="http://www.w3.org/1999/xhtml" style="width: 1px; white-space: pre-wrap;">y
<style>

html:first-letter { }

</style><script>

window.addEventListener("load", function(){
  document.documentElement.offsetHeight;
  document.documentElement.style.direction = "rtl";
  document.documentElement.offsetHeight;
  document.documentElement.style.margin = "3em";
  document.documentElement.offsetHeight;
}, false);

</script></html>
